import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

/**
 * Generated class for the UnitCourseInfoPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-unit-course-info',
  templateUrl: 'unit-course-info.html',
})
export class UnitCourseInfoPage {
  courseName;
  unitCount;
  className;
  classend;
  examplan;

  showExamplan=true;

  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }

  ionViewDidLoad() {
    this.courseName=this.navParams.get("courseName");
    this.unitCount=this.navParams.get("unitCount");
    this.className=this.navParams.get("className");
    this.classend=this.navParams.get("classend");
    this.examplan=this.navParams.get("examplan");
  }

  switchDisplay(){
    this.showExamplan=!this.showExamplan;
  }
}
